BatteryGaugeUpdater

Updater peripheral interface for battery gauge.

It indicates if the battery gauge firmware should be updated and allows to apply the update.

This peripheral is only available if the drone is connected and the battery gauge firmware should be updated.

This peripheral can be obtained from a drone using:

drone.getPeripheral(BatteryGaugeUpdater.class)

See also

com.parrot.drone.groundsdk.device.Drone

Types

Link copied to clipboard
enum State
Update state.
Link copied to clipboard
Reason that makes preparing or applying firmware update impossible.

Functions

Link copied to clipboard
@IntRange(from = 0, to = 100)
abstract fun currentProgress(): Int
Gives current prepare progress, in percent.
Link copied to clipboard
abstract fun prepareUpdate(): Boolean
Requests preparing battery gauge firmware update.
Link copied to clipboard
Gives current update state.
Link copied to clipboard
Tells why it is currently impossible to prepare or apply firmware update.
Link copied to clipboard
abstract fun update(): Boolean
Requests battery gauge firmware update.